<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!-- import CSS -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <style>
        body{
            margin: 0;  /*去掉外边距*/
            background-image: url("imgs/bg.jpg");
            /*cover 专门用来设置整个背景封面的*/
            background-size: cover;
            text-align: center;
        }
        h1{
            font-size: 72px;
            color: rgb(0,150,220);
            margin: 0;
        }
        h2{
            font-size: 32px;
            color: rgb(0,150,220);
            margin: 0;
        }
    </style>
</head>
<body>
<div id="app">
    <h1>欢迎来到酷鲨商城</h1>
    <img src="imgs/shark.png" alt="">
    <h2>CoolSharkMall</h2>
    <el-card style="width: 600px;height: 300px;
    margin: 0 auto; background-color: rgba(255,255,255,0.3)">
        <!--label-width 设置每个表单项  文本标签的宽度-->
        <el-form style="width: 400px;margin: 30px auto" label-width="60px">
            <el-form-item label="用户名">
                <el-input type="text" placeholder="请输入用户名" v-model="user.username"></el-input>
            </el-form-item>
            <el-form-item label="密  码">
                <el-input type="password" placeholder="请输入密码" v-model="user.password"></el-input>
            </el-form-item>
            <el-form-item >
                <el-button style="position: relative;right: 30px" type="primary">登录</el-button>
            </el-form-item>
        </el-form>
    </el-card>

</div>
</body>
<!-- import Vue before Element -->
<!--引入vue框架-->
<script src="https://unpkg.com/vue@2.6.14/dist/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script>
    let v =new Vue({
        el: '#app',
        data: function() {
            return {
                user:{
                    username:"",
                    password:""
                }
            }
        }
    })
</script>
</html>